:root {
  --bg-color: #121212;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg-color: white;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
  color-scheme: light dark;
}

body {
  display: grid;
  place-items: center;
  height: 100vh;
  transition: 0.3s;
}

main {
  position: relative;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  box-shadow: 0 0 0 1rem #03a9f4;
  text-align: center;
  transition: 0.5s;
  display: grid;
  place-items: center;
}
main:hover {
  border-radius: 3px;
  background-color: transparent;
}
main::before {
  position: absolute;
  content: '';
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #03a9f4;
  z-index: -10;
  transform: rotate(-45deg);
  border-radius: 1rem;
}

main p {
  color: white;
  font-family: sans-serif;
  text-shadow: 1px 1px 2px black;
  transition: 0.3s;
}

main:hover p {
  box-shadow: 0 0 3rem rgba(0, 0, 0, 0.5);
}

#switch-area {
  position: fixed;
  top: 20px;
  right: 25px;
  width: 50px;
  /* height: 25px; */
  /* vertical-align: middle; */
}

#switch {
  position: absolute;
  display: block;
  right: 25px;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  appearance: none;
  background-color: gainsboro;
  border: 4px solid gainsboro;
  /* box-shadow: 0 0 10px gainsboro; */
  cursor: pointer;
  transition: 0.3s;
  z-index: 1;
}

#switch:checked {
  right: 0;
  background-color: #68d391;
  border: 4px solid white;
}

label {
  position: absolute;
  top: 3px;
  width: 100%;
  height: 20px;
  display: block;
  border-radius: 20px;
  cursor: pointer;
  background-color: #5f5f5f;
  transition: 0.3s;
}

#switch:checked + label {
  background-color: #68d391;
}
